package com.hbk.codemaker;

import java.awt.Color;
import java.awt.FlowLayout;
import java.util.List;

import javax.swing.JPanel;

import com.hbk.programe.Constant;


public class ConstantsPanel extends JPanel{
		
	public ConstantsPanel() {
		setLayout(new FlowLayout(FlowLayout.LEFT, 10, 10));
		setBackground(Color.WHITE);
	}
	
	public void addContant() {
		ConstantPanel panel=new ConstantPanel();
		add(panel);
	}
	
	public void setConstants(List<Constant> list) {
		for (Constant constant : list) {
			ConstantPanel panel=new ConstantPanel();
			panel.setConstant(constant);
			add(panel);
		}
	}

}
